'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const ctx = this.ctx;
    const key = ctx.query.key;
    console.log(key);
    const data = await ctx.service.synopsis.find(key);
    ctx.body = data;
    return data;
  }

}

module.exports = HomeController;
